package com.bilibili.mapper;

import com.bilibili.entity.PicRead;
import com.bilibili.vo.PicUploadReadVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 每一张图片相关dmapper
 * @Author Sandy
 */
public interface PicReadMapper {

    List<PicRead> getPicReadByPageId(Integer pageId);

    /**
     *
     * @param pictures 图片链接数组(含pageId)
     * @return 插入的行数
     */
    Integer addPicReads(@Param("pictures")List<PicUploadReadVo> pictures);

}
